<?php
function DisplayNav($selectedPage = 'none'){
	$navHTML .= CreateNavItem($selectedPage, 'art', 'art.php');
	$navHTML .= CreateNavItem($selectedPage, 'about', 'about.php');
	$navHTML .= CreateNavItem($selectedPage, 'blog', 'http://blog.pamwishbow.com');
	$navHTML .= CreateNavItem($selectedPage, 'shop', 'http://www.etsy.com/shop/pamwishbow');
	print("<ul id='nav'>".$navHTML."</ul>");
}

function CreateNavItem($selectedPage, $title, $link){
	$returnString = "<li class='".$title."'><a href='".$link."'";
	if($selectedPage == $title){
		//$returnString .= " class='selected'";
	}
	if($title == 'shop'){
		$returnString .= " target='_blank'";
	}	
	$returnString .= "><span></span>".$title."</a></li>";
	return $returnString;
}
?>